home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1994 November / macformat-018.iso / Utility Spectacular / AfterDark / TwilightZone ƒ / source / sndstuff.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-08  |  371 b   |  24 lines  |  [TEXT/KAHL]

  1. #include "GraphicsModule_Types.h"
  2. #include "sndstuff.h"
  3.  
  4. OSErr MakeModuleSound(SndChannelPtr *retSndChannel,short soundType)
  5. {
  6.     OSErr err;
  7.  
  8.     *retSndChannel = nil;
  9.  
  10.     if (soundType==-1)
  11.         return;
  12.         
  13.     err = SndNewChannel(retSndChannel,soundType,0,nil);
  14.     
  15.     return err;
  16. }
  17.  
  18.  
  19. OSErr DisposeModuleSound(SndChannelPtr sndCh)
  20. {
  21.     if (sndCh)
  22.         return SndDisposeChannel(sndCh,true);
  23. }
  24.